
/**
*This software is under LGPL license,
*see http://www.gnu.org/licenses/lgpl-3.0.txt (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>)
*Console.h First issued by chuanshenglu@gmail.com 2008.10
*/

#include"trstd.h"
#include "Console.h"
#include "Win32Console.h"
#include "TRSession.h"
using namespace TR;
#include <time.h>

//#pragma comment(lib,"Kernel32.lib")
#define   _WIN32_WINNT   0x500
;
int main(int argc,char **Argv){
	Win32Console defaultConsole;
	TRSession ts(defaultConsole);

	/*for(uint32 i=0;i<55;i++)
		defaultConsole->WriteChar(Coord(i,i),'a'+i);
	srand((uint32)time(0));
	for(uint32 i=0;i<32;i++)
		defaultConsole->WriteChar(
		Coord(rand()%defaultConsole->GetWidth(),rand()%defaultConsole->GetHeight()),
		'X'
		);
	defaultConsole->WriteLine(Coord(2,2),TEXT("Hello!"));*/

	defaultConsole.EnterMainLoop();
	return 0;
}
